from .models import *
# urls.py (主路由配置)
from django.urls import include, path
from rest_framework.routers import DefaultRouter
from .views import *

router = DefaultRouter()
router.register('download', ResourceDownloadViewSet, basename='download')
router.register('navigate', ResourceNavigateViewSet, basename='navigate')
router.register('tools', ResourceToolsViewSet, basename='tools')


urlpatterns = [
    path('', include(router.urls)),
    # 其他API路径...
]
